home *** CD-ROM | disk | FTP | other *** search
- global gbPC, wnd
-
- on prepareMovie
- startTimer()
- gbPC = the platform contains "win"
- end
-
- on PDFLaunch me, flashstring
- if gbPC then
- importFileInto(member("path"), _movie.path & "path.txt")
- filePath = member("path").text & "Documents\" & flashstring
- else
- filePath = _movie.path & "Documents:" & flashstring
- end if
- put filePath
- baOpenFile(filePath, "normal")
- wnd = baNextActiveWindow(0)
- put wnd
- bringFront()
- end
-
- on bringFront me
- put wnd
- if baWindowExists(wnd) then
- Ok = baActivateWindow(wnd)
- _player.quit()
- else
- bringFront()
- end if
- end
-